import { createApp } from 'vue'
import App from './App.vue'
import plugin from './plugin'
import { Router } from './router'

createApp(App).use(plugin).use(Router.create()).mount('#app')

if (process.env.NODE_ENV === 'development') {
  window.addEventListener('keydown', event => {
    if (event.key === 'F12') {
      Application.toggleDevTools()
    }
  })
}
